package com.zhuangjie.rider.vo.PathPlanningVO;

import com.zhuangjie.mvc.helper.GeoHelper.GeoCoordinates;
import lombok.Getter;
import lombok.Setter;

import java.util.Collection;
import java.util.Objects;

/**
 * 店铺 for map
 *
 * @author zhuangjie
 * @date 2024/02/03
 */
@Getter
@Setter
public class ShopForMap extends GeoCoordinates {
    private Long id;
    private String shopName;
    private String addressDescribe;
    private Integer navigationSort;
    private Boolean isHasWaitFetchOrder;

    // 作为返回结果时需要
    private Collection<DinersForMap> dinersForMaps;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ShopForMap that = (ShopForMap) o;
        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return id != null ? id.hashCode() : 0;
    }
}
